s = input().split(" ")
money = float(s[0])
rate = int(s[1])
cash = money * rate / 100
total = money + cash
print("%.2f" % (cash))
print("%.2f" % (total))